﻿using Bll;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Myproject.BSM.PcWeb.PcBase
{
    public partial class FriendEdit : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string friendID = Request.QueryString["id"];
            if (!string.IsNullOrEmpty(friendID))
            {
                pc_base_friendEdit_friendID.Value = friendID;
                FriendModel model = new FriendBLL().GetModel(Int32.Parse(friendID));
                pc_base_friendEdit_name.Value=model.FriendName;
                pc_base_friendEdit_eurl.Value=model.FriendUrl;
                pc_base_friendEdit_frank.Value = model.FriendRank.ToString();
            }
        }
    }
}